#加载模块 core核心模块 gui界面模块
QT       += core gui

QT += multimedia
QT += multimediawidgets

#当Qt版本大于4 Qt5需要加上widgets模块
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets


#配置C++11 让qt支持C++11语法 lambda
CONFIG += c++11


#使用过时的函数会产生警告
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS



#shi用过是的函数会产生报错
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
#项目里边的源文件
SOURCES += \
    main.cpp \
    mainwindow.cpp

#项目里边的头文件
HEADERS += \
    mainwindow.h
#项目里边的ui文件
FORMS += \
    mainwindow.ui

# Default rules for deployment.嵌入式平台，linux平台
#这行规则指定了如果目标平台是 QNX，则将应用程序安装到 /tmp/$${TARGET}/bin 目录下
#。其中 $${TARGET} 是一个 Qt 变量，表示目标的名称或标识符。
#这行规则指定了在其他 Unix-like 平台（不包括 Android）上，将应用程序安装到 /opt/$${TARGET}/bin 目录下。
#这行规则将前面定义的 target 添加到 INSTALLS 变量中。INSTALLS 是一个 Qt 构建系统的内置变量，用于指定安装规则。这行规则的作用
#是告诉构建系统按照前面定义的规则将应用程序安装到指定的目录中。*/
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    icon.qrc
